using System;
using System.Collections.Generic;
using System.Text;
using BCB.Model;
namespace BCB.IDAL
{
    public interface IProduct
    {
        /// <summary>
        /// Get product details information by productId
        /// </summary>
        /// <param name="prdId">ProductId</param>
        /// <returns></returns>
        ProductDetail GetProductByPrdId(int prdId);
        /// <summary>
        /// Get the corresponding category's product count;
        /// </summary>
        /// <param name="categoryId">Category id</param>
        /// <returns>the count of products belong to this category</returns>
        int GetProductCountByCategoryId(int categoryId);
    
        List<ProductDetail> GetPrdsByCateId(int categoryId, int pageNum,int pageSize);
    }
}
